<template>
  <div class="app-container">
    <el-row>
      <el-button type="success" @click="dialogVisible = true">添加</el-button>
    </el-row>
    <el-table
      :data="Ggjcxx"
      style="width: 100%"
    >
      <el-table-column
        prop="rksl"
        label="人口数量"
      />
      <el-table-column
        prop="kalbjzb"
        label="口岸列表及坐标"
      />
      <el-table-column
        prop="mtlbjzb"
        label="码头列表及坐标"
      />
      <el-table-column
        prop="lbjyyzb"
        label="医院列表及坐标"
      />
      <el-table-column
        prop="zdjkqylbjzb"
        label="重点监控区域列表及坐标"
      />
      <el-table-column
        prop="kahbjyxdspjrjklb"
        label="口岸和边境沿线的视频接入接口列表"
      />
    </el-table>
    <el-dialog
      title="公共基础信息"
      :visible.sync="dialogVisible"
      width="50%"
    >
      <el-form ref="form" style="margin-top: 20px;" :model="Ggjcxx_form" label-width="180px">
        <el-form-item label="人口数量">
          <el-input v-model="Ggjcxx_form.rksl" />
        </el-form-item>
        <el-form-item label="口岸列表及坐标">
          <el-input v-model="Ggjcxx_form.kalbjzb" />
        </el-form-item>
        <el-form-item label="码头列表及坐标">
          <el-input v-model="Ggjcxx_form.mtlbjzb" />
        </el-form-item>
        <el-form-item label="医院列表及坐标">
          <el-input v-model="Ggjcxx_form.lbjyyzb" />
        </el-form-item>
        <el-form-item label="重点监控区域列表及坐标">
          <el-input v-model="Ggjcxx_form.zdjkqylbjzb" />
        </el-form-item>
        <el-form-item label="口岸和边境沿线的视频接入接口列表">
          <el-input v-model="Ggjcxx_form.kahbjyxdspjrjklb" />
        </el-form-item>
      </el-form>
      <div style="text-align: center;width: 100%">
        <el-button type="primary" @click="onSubmit">确定</el-button>
        <el-button @click=" dialogVisible = false">取消</el-button>
      </div>
    </el-dialog>

  </div>
</template>

<script>
export default {
  name: 'GgjcxxForm',
  data() {
    return {
      dialogVisible: false,
      Ggjcxx: [],
      Ggjcxx_form: {
        // / <summary>
        // / 人口数量
        // / </summary>
        rksl: 0,
        // / <summary>
        // / 口岸列表及坐标
        // / </summary>
        kalbjzb: '',
        // / <summary>
        // / 码头列表及坐标
        // / </summary>
        mtlbjzb: '',
        // / <summary>
        // / 医院列表及坐标
        // / </summary>
        lbjyyzb: '',
        // / <summary>
        // / 重点监控区域列表及坐标
        // / </summary>
        zdjkqylbjzb: '',
        // / <summary>
        // / 口岸和边境沿线的视频接入接口列表
        // / </summary>
        kahbjyxdspjrjklb: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('提交')
    },
    del(id) {
      this.$alert('确认删除该记录吗？', '提示', {
        confirmButtonText: '确定',
        callback: action => {
          this.$message.success('删除成功！')
        }
      })
      console.log(id)
    }
  }
}
</script>

<style scoped>

</style>
